package com.example.SpringIoCpractice;

import javafx.application.Application;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

//TODO
public class Main{
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("hello.xml");
        System.out.println("-----------------------");
        HelloWorld helloWorld= (HelloWorld) applicationContext.getBean("helloWorld");
        helloWorld.getHello();

    }
}